package com.ruoyi.swimming.domian;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 泳票类型对象 swimming_ticket_type
 * 
 * @author ruoyi
 * @date 2021-07-17
 */
public class SwimmingTicketType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 泳票类型名称 */
    @Excel(name = "泳票类型名称")
    private String typeName;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal typeAmount;

    /** 是否限制次数 */
    @Excel(name = "是否限制次数")
    private Integer isLimitTimes;

    /** 次数 */
    @Excel(name = "次数")
    private Long times;

    /** 是否删除 */
    @Excel(name = "是否删除")
    @TableLogic
    private Integer isDel;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }
    public void setTypeAmount(BigDecimal typeAmount) 
    {
        this.typeAmount = typeAmount;
    }

    public BigDecimal getTypeAmount() 
    {
        return typeAmount;
    }
    public void setIsLimitTimes(Integer isLimitTimes) 
    {
        this.isLimitTimes = isLimitTimes;
    }

    public Integer getIsLimitTimes() 
    {
        return isLimitTimes;
    }
    public void setTimes(Long times) 
    {
        this.times = times;
    }

    public Long getTimes() 
    {
        return times;
    }
    public void setIsDel(Integer isDel) 
    {
        this.isDel = isDel;
    }

    public Integer getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("typeName", getTypeName())
            .append("typeAmount", getTypeAmount())
            .append("isLimitTimes", getIsLimitTimes())
            .append("times", getTimes())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("isDel", getIsDel())
            .toString();
    }
}
